import { createApp } from 'vue'

import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import { ElForm } from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "./assets/css/index.css";
import dataV from '@jiaminghi/data-view'
import Echart from './components/echarts/backup/index.vue'
import ItemWrap from './components/item-wrap/item-wrap.vue'
import Reacquire from './components/reacquire/reacquire.vue'
import { createVuestic } from 'vuestic-ui'
import 'vuestic-ui/dist/vuestic-ui.css'
//import './styles/element/index.scss'
import { ElButton } from 'element-plus'
import 'element-plus/es/components/button/style/css'
import axios from 'axios'
import createStore from './store/index'
import  '@/assets/css/public.scss'
import "@/assets/css/index.scss"

const app = createApp(App)
app.config.globalProperties.$axios=axios
app.config.globalProperties.$backadd="http://10.112.241.175:8081"
// app.config.globalProperties.$backadd="http://10.112.186.60:8081"
app.use(createVuestic())
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(dataV)

app.use(ElForm)
app.use(ElementPlus)
app.use(store)

app.use(router)

// 自定义组件
app.component("Echart",Echart)
app.component("ItemWrap",ItemWrap)
app.component("Reacquire",Reacquire)
app.mount('#app')
